<?php

namespace IMT\AccountBundle\Form;

use Symfony\Component\Form\FormBuilderInterface;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class AccountGmailType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('title', 'text', array(
            	'label' => 'Nom du compte',
            	'required' => true,
            	'attr' => array(
            		'class' => 'span12'
            	) 
            ))
            ->add('color', 'choice', array(
            	'label' => 'Couleur',
            	'choices'   => array(
            		'fc-event-orange' => 'Orange', 
            		'fc-event-red' => 'Rouge', 
            		'fc-event-blue' => 'Bleu', 
            		'fc-event-black' => 'Noir', 
            		'fc-event-green' => 'Vert'
            	),
            	'required' => true,
            	'attr' => array(
            		'class' => 'span12'
            	) 
            ))
            ->add('active', 'checkbox', array(
            	'label' => 'Activation',
            	'required' => false
            ))
            ->add('active_synch', 'checkbox', array(
            	'required' => false		
            ))
            //->add('user')
            //->add('contacts')
        ;
    }

    public function getName()
    {
        return 'imt_accountbundle_accountgmailtype';
    }
}
